﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IFServerDLL.Model;

namespace IFClientDLL.MyCalc.CalcArt
{
    public enum MyEnumCalcSuggest
    {
        Sleep,
        Open,
        Close
    }
    public interface ICalcResult
    {
        MyEnumCalcSuggest Suggest { get; }
        int Volume { get; }
        MyEnumDirection BuyOrSell { get; }
    }
    public class CalcArtResult : ICalcResult
    {
        public CalcArtResult(MyCalc_UserInput userInput, MyEnumCalcSuggest suggest, List<CalcMsg> listMsg, int volume = 0, MyEnumDirection buyOrSell = MyEnumDirection.Buy)
        {
            _UserInput = userInput;
            _Suggest = suggest;
            _ListMsg = listMsg;
            _Volume = volume;
            _BuyOrSell = buyOrSell;
        }
        private MyCalc_UserInput _UserInput;
        public MyCalc_UserInput UserInput { get { return _UserInput; } }
        private List<CalcMsg> _ListMsg;
        public List<CalcMsg> ListMsg { get { return _ListMsg; } }


        private MyEnumCalcSuggest _Suggest = MyEnumCalcSuggest.Sleep;
        public MyEnumCalcSuggest Suggest
        {
            get { return _Suggest; }
        }
        private int _Volume = 0;
        public int Volume
        {
            get { return _Volume; }
        }
        private MyEnumDirection _BuyOrSell;
        public MyEnumDirection BuyOrSell
        {
            get { return _BuyOrSell; }
        }
    }
}
